package com.cksys.achievement.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cksys.achievement.entity.Result;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cksys.achievement.enums.ResultStatus;
import com.sun.org.apache.xpath.internal.operations.Bool;

import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tadechen
 * @since 2019-09-26
 */
public interface IResultService extends IService<Result> {

    List<Result> searchResultList(String time, Integer typeId, List<Integer> userIds, Integer uId, ResultStatus resultStatus);

    IPage<Result> searchResultPage(IPage<Result> page, String time, Integer typeId, List<Integer> userIds, Integer uId, ResultStatus resultStatus);

    List<Collection<String>> getCalendar();

    List<Collection<String>> getByType();

    List<Collection<String>> getByUser();

    List<Collection<String>> getByTypeWithYear();

    List<String> getTopUser(Integer num);
}
